package com.athena.crm.service;

import com.athena.crm.domain.CrmCustomerFollrecords;
import com.athena.crm.domain.bo.CrmCustomerFollrecordsAddBo;
import com.athena.crm.domain.vo.CrmCustomerFollrecordsVo;
import com.athena.crm.domain.bo.CrmCustomerFollrecordsBo;
import com.athena.common.core.page.TableDataInfo;
import com.athena.common.core.domain.PageQuery;
import com.sun.org.apache.xpath.internal.operations.Bool;

import java.util.Collection;
import java.util.List;

/**
 * 客户跟进记录Service接口
 *
 * @author ruoyi
 * @date 2023-09-12
 */
public interface ICrmCustomerFollrecordsService {

    /**
     * 查询客户跟进记录
     */
    CrmCustomerFollrecordsVo queryById(String id);

    /**
     * 查询客户跟进记录列表
     */
    TableDataInfo<CrmCustomerFollrecordsVo> queryPageList(CrmCustomerFollrecordsBo bo, PageQuery pageQuery);

    /**
     * 查询客户跟进记录列表
     */
    List<CrmCustomerFollrecordsVo> queryList(CrmCustomerFollrecordsBo bo);

    /**
     * 新增客户跟进记录
     */
    Boolean insertByBo(CrmCustomerFollrecordsBo bo);

    /**
     * 修改客户跟进记录
     */
    Boolean updateByBo(CrmCustomerFollrecordsBo bo);

    /**
     * 校验并批量删除客户跟进记录信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    /**
     * 添加客户跟进记录
     * @param bbo
     * @return
     */
    Boolean insertByBbo(CrmCustomerFollrecordsAddBo bbo);
}
